﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="Galnote.Login.Register" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
					 xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Register Page" Loaded="Page_Loaded_1">
	
    <Grid x:Name="LayoutRoot">
		<Grid Width="320" Height="330" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,100">
			<Grid.RowDefinitions>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="50"/>
				<ColumnDefinition Width="1*"/>
				<ColumnDefinition Width="40"/>
			</Grid.ColumnDefinitions>

			<sdk:Label Target="{Binding ElementName=InputName}" Content="用户名："/>
			<TextBox x:Name="InputName" Grid.Column="1" Style="{StaticResource ResourceKey=InputTBoxStyle}" Text="{Binding Path=Name,Mode=TwoWay}" VerticalAlignment="Center" Margin="12,0" Height="24"/>
			<sdk:DescriptionViewer x:Name="NameDescription" Grid.Column="2" Style="{StaticResource ResourceKey=RegisterDescriptionViewerStyle}" Target="{Binding ElementName=InputName}"/>
			<sdk:Label Grid.Row="1" Target="{Binding ElementName=InputEmail}" Content="邮   箱："/>
			<TextBox x:Name="InputEmail" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=InputTBoxStyle}" Text="{Binding Path=Email,Mode=TwoWay}" VerticalAlignment="Center" Margin="12,0" Height="24"/>
			<sdk:DescriptionViewer x:Name="MailDescription" Grid.Row="1" Grid.Column="2" Style="{StaticResource ResourceKey=RegisterDescriptionViewerStyle}" Target="{Binding ElementName=InputEmail}"/>
			<sdk:Label Grid.Row="2" Target="{Binding ElementName=InputPassword}" Content="密   码："/>
			<PasswordBox x:Name="InputPassword" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=InputPwbStyle}" Password="{Binding Path=Password,Mode=TwoWay}" VerticalAlignment="Center" Margin="12,0"/>
			<sdk:DescriptionViewer x:Name="PassWordDescription" Grid.Row="2" Grid.Column="2" Style="{StaticResource ResourceKey=RegisterDescriptionViewerStyle}" Target="{Binding ElementName=InputPassword}"/>
			<sdk:Label Grid.Row="3" Target="{Binding ElementName=InputPasswordAgain}" FontWeight="Bold" Content="确认密码："/>
			<PasswordBox x:Name="InputPasswordAgain" Grid.Row="3" Grid.Column="1" Style="{StaticResource ResourceKey=InputPwbStyle}" VerticalAlignment="Center" Margin="12,0"/>
			<sdk:DescriptionViewer x:Name="PassWordAgainDescription" Grid.Row="3" Grid.Column="2" Style="{StaticResource ResourceKey=RegisterDescriptionViewerStyle}" Target="{Binding ElementName=InputPassword}"/>
			<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,25,0">
				<HyperlinkButton Style="{StaticResource ResourceKey=GenericHBStyle}" Width="75" Height="28" Margin="5" NavigateUri="/Login/Login.xaml">
					<Border BorderBrush="#FFB4B4B4" BorderThickness="1" Cursor="Hand">
						<TextBlock Text="返   回" HorizontalAlignment="Center" VerticalAlignment="Center"/>
					</Border>
				</HyperlinkButton>
				<Button  Style="{StaticResource ResourceKey=GenericBtnStyle}" Width="75" Height="28" Margin="5">
					<Border BorderBrush="#FFB4B4B4" BorderThickness="1" Background="#FFB4B4B4" Cursor="Hand">
						<TextBlock Text="提   交" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
					</Border>
				</Button>
			</StackPanel>
			<HyperlinkButton Grid.Row="3" Style="{StaticResource ResourceKey=GenericHBStyle}" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Margin="0,5,2.2,0" Grid.Column="1"/>
		</Grid>
	</Grid>
</navigation:Page>
